<link rel="stylesheet" href="css/agcfs.pub.css">
<title>调整类型</title>
<!-- <script src="../../../../trd/requirejs/require.mini.js" data-main="DataTables_Tree.js"></script> -->
<div class="container-fluid">
    <nav class="navbar navbar-default" role="navigation">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">调整类型</a>
        </div>

        <form class="navbar-form navbar-left">
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon1">会计年度</span>

                <select class="form-control" id="select-update-nd" data-bind="event:{change:searchUpdateType}">
                    <option value="">请选择会计年度</option>
                </select>
            </div>

            <button type="button" class="btn btn-default" data-bind="click: addUpdateType">新增</button>
            <button type="button" class="btn btn-default" data-bind="click: editUpdateType">编辑</button>
            <button type="button" class="btn btn-default" data-bind="click: delUpdateType">删除</button>
            <div class="btn-group" role="group" aria-label="...">
            </div>
        </form>


    </nav>
    <div>
        <!-- <div class="panel-heading">调整类型</div> -->
        <table id="update-grid" class="table table-striped table-bordered" cellspacing="0" width="100%">
            <thead>
            <tr>
                <th></th>
                <th>年度</th>
                <th>调整类型编码</th>
                <th>调整类型名称</th>
            </tr>
            </thead>
            <tbody></tbody>
            <tfoot>
            <tr>
                <th></th>
                <th>年度</th>
                <th>调整类型编码</th>
                <th>调整类型名称</th>
            </tr>
            </tfoot>
            <!-- tbody是必须的 -->
        </table>
        
       <!-- </div> -->
    </div>
</div>
<div class="modal fade" id="edit-updatetype" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
     aria-hidden="true">
    <div class="modal-dialog editmodal" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title">调整类型编辑</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" role="form">
                    <div class="input-group">
                        <span class="input-group-addon">&emsp;&emsp;年度</span>
                        <select id="update-edit-nd" class="form-control">
                            <option value="" >请选择会计年度</option>
                        </select>
                    </div>

                    <div class="input-group">
                        <span class="input-group-addon">调整类型</span>
                        <input id="update-type" type="text" class="form-control"
                               data-bind="event:{blur: checkUpdateTypeCode}">
                    </div>

                    <div class="input-group">
                        <span class="input-group-addon">调整名称</span>
                        <input id="update-name" type="text" class="form-control">
                    </div>
                    <input type="hidden" id="updatetype-id">
                </form>
            </div>

            <div class="modal-footer">
                <span id="warn-text" class="label label-warning warn-span"></span>
                <div class="btn-group" role="group" aria-label="...">
                    <button class="btn btn-primary" data-bind="click: saveUpdateTypeEdit">保存</button>
                    <button class="btn btn-primary" data-bind="click: cancelUpdateTypeEdit">取消</button>
                </div>
            </div>
        </div>
    </div>
    <div id="save-success-new" class="save-success-new"><img src="images/ip/menu/success_p.png" height="" width=""/>保存成功!
    </div>
</div>
</div>
<div class="modal fade" id="delete-updatetype-notice" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog">
        <div class="jump-content jump-content-delete">
            <div class="jump-header">
                <p class="jump-header-title">系统提示</p>
                <a class="jump-header-close" href="javascript:void(0);"
                   data-bind="click: delete_updatetype_close;">
                    <img src="images/ip/menu/close.png" width="12" height="13">
                </a>
            </div>
            <div class="jump-body">
                <div class="jump-body-delete">
                    <p id="jump-delete-text">您确定要删除吗？</p>
                </div>
            </div>
            <div class="jump-footer">
                <div class="jump-footer-btn-right fr">
                    <button class="jump-btn-save" data-bind="click: delete_updatetype">确定</button>
                    <button class="jump-btn-cancel" data-bind="click: delete_updatetype_close;">
                        取消
                    </button>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="edit-updatetype-notice" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog">
        <div class="jump-content jump-content-delete">
            <div class="jump-header">
                <p class="jump-header-title">系统提示</p>
                <a class="jump-header-close" href="javascript:void(0);"
                   data-bind="click: edit_updatetype_close;">
                    <img src="images/ip/menu/close.png" width="12" height="13">
                </a>
            </div>
            <div class="jump-body">
                <div class="jump-body-delete">
                    <p id="jump-delete-text2">请您选择一项再进行编辑。</p>
                </div>
            </div>
            <div class="jump-footer">
                <div class="jump-footer-btn-right fr">
                    <button class="jump-btn-save" type="button" data-bind="click:edit_updatetype_close">确定</button>
                    <button class="jump-btn-cancel" type="button" data-bind="click:edit_updatetype_close">取消</button>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="drop-updatetype-notice" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog">
        <div class="jump-content jump-content-delete">
            <div class="jump-header">
                <p class="jump-header-title">系统提示</p>
                <a class="jump-header-close" href="javascript:void(0);"
                   data-bind="click: drop_updatetype_close;">
                    <img src="images/ip/menu/close.png" width="12" height="13">
                </a>
            </div>
            <div class="jump-body">
                <div class="jump-body-delete">
                    <p id="jump-delete-text1">请您选择一项再进行删除。</p>
                </div>
            </div>
            <div class="jump-footer">
                <div class="jump-footer-btn-right fr">
                    <button class="jump-btn-save" type="button" data-bind="click:drop_updatetype_close">确定</button>
                    <button class="jump-btn-cancel" type="button" data-bind="click:drop_updatetype_close">取消</button>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="error-notice" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog infomodal">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title">错误</h4>
            </div>
            <div class="modal-body">
                <div class="modal-body-error">
                    <img class="dialog-icon" src="images/ip/menu/errorNotice.png" width="24" height="24"/>
                    <p id="error-text"></p>
                </div>
            </div>
        </div>
    </div>
</div>

  